package work_0318;

public class Rectangles extends Shapes{
    double width;
    double hight;
    public void calculate(double width, double height){
        this.width=width;
        this.hight=height;
    }

    //计算矩形面积
    public double calculateR(){
        return width*hight;
    }

    @Override
    void go(){
        super.go();
        System.out.println("正在绘图方块");

    }

}
